<template>
  <div>
    <roofVue title="订单"></roofVue>
    <van-tabs v-model="item" animated @click="onclick">
      <van-tab title="待付款" name="weizhifu">
        <paymentweiVue></paymentweiVue>
      </van-tab>
      <van-tab title="待发货" name="b">
        <paymentVue></paymentVue>
      </van-tab>
      <van-tab title="待收货" name="c">内容 3</van-tab>
      <van-tab title="待评价" name="d">内容 4</van-tab>
      <van-tab title="已完成" name="e"></van-tab>
    </van-tabs>
  </div>
</template>

<script>
import paymentVue from './zhifu/payment.vue';
import paymentweiVue from "./wei/paymentwei.vue";
import roofVue from "../other/roof.vue";
export default {
  data() {
    return {
      item: "e",
    };
  },
  components: {
    roofVue,
    paymentweiVue,
    paymentVue
  },
  created() {
    this.item = this.Sto.Session.get("order");
  },
  methods: {
    onclick(index, item) {
      // console.log(item);
      this.Sto.Session.set("order", index);
    },
  },
};
</script>

<style  scoped>
</style>